package com.yami.shop.bean.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 商品详细库存DTO
 */
@Data
@ApiModel("商品详细库存DTO")
public class ProdInventoryDTO implements Serializable {
    
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("商品ID")
    private Long prodId;

    @ApiModelProperty("商品名称")
    private String prodName;

    @ApiModelProperty("店铺ID")
    private Long shopId;

    @ApiModelProperty("店铺名称")
    private String shopName;

    @ApiModelProperty("价格")
    private BigDecimal price;

    @ApiModelProperty("状态(0-已售出 1-未售出 2-锁卡状态)")
    private Integer status;

    @ApiModelProperty("状态名称")
    private String statusName;

    @ApiModelProperty("商品分类ID")
    private Long categoryId;

    @ApiModelProperty("是否优先售卖")
    private Long isPriority;
    
    @ApiModelProperty("分类名称")
    private String categoryName;

    @ApiModelProperty("卡号")
    private String cardNumber;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("锁定时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime lockTime;

    @ApiModelProperty("售出时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime soldTime;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;
} 